package com.cn.netty.customize;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class BusinessMessageType {

  public static final int heartbeat_req = 9;

  public static final int heartbeat_res = 10;

  public static BusinessMeassage buildHeartBeatReq() {
    BusinessMeassage businessMeassage = new BusinessMeassage();
    businessMeassage.setType(heartbeat_req);
    businessMeassage.setMessage("心跳请求包");
    return businessMeassage;
  }

  public static BusinessMeassage buildHeartBeatRes() {
    BusinessMeassage businessMeassage = new BusinessMeassage();
    businessMeassage.setType(heartbeat_res);
    businessMeassage.setMessage("心跳响应包");
    return businessMeassage;
  }

}
